Resolve ListView header click offset errors by correctly inflating and adding headers before setting the adapter.